package com.guigu.www.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("m_design_procedure")
public class DesignProcedure {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;             //序号
    @TableField("DESIGN_ID")
    private String designid;        //设计编号
    @TableField("FIRST_KIND_ID")
    private String firstkindid;     //产品I级分类编号
    @TableField("FIRST_KIND_NAME")
    private String firstkindname;       //产品I级分类名称
    @TableField("SECOND_KIND_ID")
    private String secondkindid;        //产品II级分类编号
    @TableField("SECOND_KIND_NAME")
    private String secondkindname;      //产品II级分类名称
    @TableField("THIRD_KIND_ID")
    private String thirdkindid;         //产品III级分类编号
    @TableField("THIRD_KIND_NAME")
    private String thirdkindname;           //产品III级分类名称
    @TableField("PRODUCT_ID")
    private String productid;       //产品编号
    @TableField("PRODUCT_NAME")
    private String productname;     //产品名称
    @TableField("PROCEDURE_DESCRIBE")
    private String proceduredescribe;       //设计要求
    @TableField("COST_PRICE_SUM")
    private Double costpricesum;        //工时总成本
    @TableField("MODULE_COST_PRICE_SUM")
    private Double modulecostpricesum;  //物料总成本
    private String designer;            //设计人
    private String register;            //登记人
    @TableField("REGISTER_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date registertime;          //登记时间
    private String checker;             //复核人
    @TableField("CHECK_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date checktime;             //审核时间
    @TableField("CHECK_SUGGESTION")
    private String checksuggestion;             //审核意见
    @TableField("CHECK_TAG")
    private String  checktag;           //审核标志   S001-0: 等待审核  S001-1: 审核通过   S001-2: 审核不通过
    private String changer;             //变更人
    @TableField("CHANGE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date changetime;            //变更时间
    @TableField("CHANGE_TAG")
    private String changetag;           //变更标志  B002-0: 未变更  B002-1: 已变更
    @TableField("DESIGN_MODULE_TAG")
    private String designmoduletag;         //工序物料设计标志  G002-0: 未设计 G002-1: 已提交    G002-2: 已审核
    @TableField("DESIGN_MODULE_CHANGE_TAG")
    private String designmodulechangetag;       //工序物料变更标志   G003-0: 未变更  G003-1: 已变更

    //工序明细组成详情集合
    @TableField(exist = false)
    private List<DesignProcedureDetails> detailss;

    @TableField(exist = false)
    private ModuleDetails moduleDetails;



}
